add build script
fix bug in build script
some modify