implement the vc_set_flags() part