make clone hack work for loadFile also
[1589]