defualt ref support. For #264