added preinstall hook