updated build scripts for device