changed to use x-resource-in header