refactor zil/set-agenda-files