added new features to build script