clean def_readwrite + conversion
ref. count fix