fixed bugs
fixes to regression system
fixes to regression system