some fixes on hadoop