karma: parsing fixes
karma: make even regex better