merge map with flatMap for reactive. update #667