fix truncating position when constraining
 refactor structure of parser integration, several files can be loaded and cycled between and reloaded.