better socket/user management