fix location column
reimplement file loading