removed deprecated session code