previous commit was a mistake

flags did work. now fixed them to be more clear/efficient. works great.