improving getFile