socket and sessions