amendment no. 12 and CONSENT NO. 4 TO CREDIT AGREEMENT