basic hdfs helpers