add map operator along with flatMap, jvm 1.6 -> 1.7