fixed logging setup