fixed logging the shit out