custom file output
error reporting