support for 'instance-based subs'