modernize some other older palette handlers (nw)