handle case if resource is too large