fixed get_or_create api call