updated file loading

setting working directory in init