adding options for logging errors to a file