added default-metadata file
fixed incorrect error logging