implemented provider ready check