improve ycm requirement checking