refactor linking methods in parser module