make --alt-y-grid work properly in many more cases than before