fixes to build script and added the order verification call