TODO: support for HDFS