clean up rogue puts