changed api and contentprovider