Changed api calls to use the prefences to pick a deviceid