add control over status to identity
small improvements on session