added file_type parameter, HDF5 is a default fallback