new script with multiple exit codes for different types of errors in input file