simplified add_provider and really ensure that the attribute providers is not of type list