nearly functional CreditState added