Foxel agent
refactoring
Foxel agent
refactoring, improvements