added the ability to specify a logfile in the config