update install logic