got it working, needs a slight clean up.  Also needs to take repo as a parm