rewrite collector for multiple datasources