session and version implementation.