adjusting accept_connection to session
changing constructors for session (instead of ssl context)