add build script
fix build script
remove deparected codes in the build script