add support for multi-type references