upgraded version, actually incorporated pre install script