remove krun dependence on parser code

@radumereuta @bmmoore please review
Explain this please.