add -debug flag, simplify release output collection