change a lot of ImportPath functions to protected methods