update configuration.getFile handling logic