made ref_count 32 bits, move up type