shoddy implementation of file pulling from filesystem