replaced domain.rdb with sessionSingleton, but stil wip