moved wp.watch() to api.go
forgot the import...
modularized code. inspired by the go cmd