get rid of this hacky log stuff