added support for multi-type references