implement global operations and operations without using scope parameter
do not replace legends when they palette is extended, merge them