add additional readwrite flag and reset ref count
add additional readwrite flag and reset ref count

pahihu/kona,kirbyfan64/kona,kevinlawler/kona,kevinlawler/kona,igaray/kona,pahihu/kona,joebo/kona,joebo/kona,igaray/kona,kirbyfan64/kona,kirbyfan64/kona,0branch/kona,0branch/kona,joebo/kona,igaray/kona,pahihu/kona,0branch/kona