allow flag parsing