updated build script
fixed bug