...so where does r->main->refcount-- happen?