more generic placeholder ref handling