1 EXHIBIT 10.5 AMENDED AND RESTATED SENIOR LOAN AGREEMENT