make sure flags are populating the right variables