refactor to accept multiple feeds