add a logic to check file:/localhost/... file when load data