modifed build script