fix log stuff