added flags control signal