support global loading via alias and global.ref