switch loading will work when devtype bug is fixed