alter plugin registration system to use pure lists and sets for efficiency