improve build check