split install into install, init