refactor parser
errors
separate files
chunk