moved farther into packet control to diagnose segfault