check and build