improvements and examples for instance and global modes