cleaning up console logging