working on reference counting, not done
basic working version of use/free capability
fixup