added setup for memory service