fixing reference counting (i think)