recover the exit way