modified file loading such that hopefully directory stays in sync between load and save