added some copuniform bugfixes