adding fixes to build script for testing