reduce use of puts as a debugger