finalize redirect behavior