new support for the ensure session method (simplified usage)