changed the install script to postinstall script