re-write install script