add reference counter for future smarter allocations