enabled error logging to file