updated core build script