enabled static and public directory