some cleanup in harvest script