trying to make error handling work

Skips to the end of the file. Some things still need to recognize EOL