take the template and url hijack outside of the init function. init runs too late in some situations