added file extension to metadata collection