add check before trying install