add rescue for redirect back