based on hadoop 0.21