fixed the never break flag that never really worked..

also improved z-ordering efficiency by a bit