added way to handle usersessions
added ednpoints in connection