implements a simple stack for plugin iterator
plugin now compatible with new Handler::getIterator() interface