set version before invoking ensure to avoid multiple requests being processed