mapper and reducer enhancements