added support for public folders