updated build script to make schema dynamic