add vertical flag support