move project.r stuff to regression.r