refactoring zend structure