remove cruft from output