making public directory configurable