add fetch resources call back