modified pollCreate API