fix for none secure redirects and csv improvements