fix to rescue orphan script