metadata: added support for excluding metadata