AMENDED and restated LOAN AND SECURITY AGREEMENT