add basic session control