modifying output path in debug mode