clean up parser