adding watch task, rejigged express middleware