remove code related to dynamic change of write/read target file.
refactor.