added datacenter check to keep files in same datacenter as site