fixed logging......