add single and double flag recognition with commands