add getPathForTemplate metho
some modifications for package.json