some cleanup of output