adds version method to embedded session