moved toolchain check; updated some device scripts