more work on readability, now flags are strings not ints