fix debug, simplify trigger-based auto-launching