server task uses watch main (fix #22)