SECOND amended and restated CREDIT AGREEMENT