fix issue #1
fix issue #2
fix #3
forget clearZ