simplify install function