fix: refactoring of the old code, transferring sending tags to ontraport to agents

fix: refactoring of the old code, transferring sending tags to ontraport to agents