remove cruft, logging