add -by_file flag