Finally, the read/write functions makes sense, but still not working well