implement install candidate logic