added PublicPath func