file IO code update