add program trashing prevention