split build and check