instead of using the appfolder, use doc that's accessible