automate the build steps, use mock