fixed logging output