remove krun dependence on parser code

**do not review yet**