move zb to common lib