add readfile() and savefile()