simplify install logic