replaced getPublicPath with pathpublic.get, a method from an external module