fixed logging bugs