added check for build on open