split out separate pindex_run.go file