check before install