cleaning up debugging logging