rearrange short-circuit conditional and global import so that we only import the global when user has privs