add gflags output_path
almost finish!