move debugging to safe place (before vfork)