Excluding the plugins, several bugfixes, redirect function