- make flatten and predicate parser work on lists