adding the flags