add logging to dea drain script