old run.C with buff input