improved redirect filter initialization