updates in error generation infra.