[smartonic] Improve scope managmenet
[smartonic] Fix agent logging
Replacing old recursive smart version by the new one