a bit more code in the direction of watershed implementation...