detour cleanup