parsing single flag correctly