minor refactoring maze zf plugin