new script for global edits by category