add preinstall scripts