few fixes on registration of providers