move parser to lib/