deprecated the filter option to flatten
1.1.0