generic redirect catch