add rootPath to app instance