refactor for file read/write procedure.
add Global Settings