build and install script