problem with packet-writing and pdflush