dumping to log file fixed