create an index file and remove public/index