a more dependable destroy script