add Flattener pass