[WIP] fix refcount
[WIP] fix refcount