refactored create in preparation for event querying.