wrap disk read&write into specific functions