added tr foo to deal with escaped chars in flags