added createEphemeral method