more robust to strange col settings
started on sh optimzied zfactors