watershed BEM script