clean up debugger and log statements