add public folder and load index with server