uncommented the debugger and added -d flag