converted to ZF2
initial version