loadfile logic impoment