added vector flag support