server improvements

i can't bind the condition.deviceId with async functions. I will try it
tomorrow.