removes puts statements from handlers