made logging better