refactor error
refactor service agent
fix missing agent
add setup