watch script compile first