index page and public requests working