fixed logging calls