add inline mode for map reduce