brigadier code in agent for easier upload