changed error logging, log file location