rename write-rg.go, add read-reader