added support for open ref