fix misbehaving getfile function for digital object retreival