add error provider and metadata provider
