added buildArch option, console.log for errors