add -d option for reading file metadata information