create new provider and resource