CREDIT, SECURITY AND GUARANTY AGREEMENT