removed deprecated registry and use session