cleaning up parser errors