create device and location.