corrections for drain script