Agent exsist
Refactored server