first version - not quite ok since killing the watch script doesn't work