added threading to cvs integration