partial commit
handling z and c signals