support writing to logfile