tidy up debugging output