Iterator stack for plugin handler

Attempts to fix whitelist bug #104