add local/eager mode