added redirects and other fixes
got logging working