Give users atomic ids
Move socket to static structure