made redirect filter initialization conditional, depending on existing redirect filter