cleaning up a little logging