updates to code and install script