add build script for gate