moving hdfs funcs to hdfs wrapper