got all flags working