cleaned up log stuff