moved mainBranch
need to lookup correct target ids