added support for public folder setting