migrate zf1 and zf2
merged