add option for metadata filtering to fofn_with_metadata datasources