update resources and add a batch