added support for specifying the location of log files