setAsReference was added in open method