mapred related bugfixes