callback after loading files