add HDFS api hacking code