feature/new parser on kore

**do not review yet**

@radumereuta, this is the work we did last week. I fixed some tests and cleaned up a bit. have a look and adjust as you see fit.

You can remove this comment.