check for help flag before checking if a file exists
fix error messages