ditching unused code, adding file loader