move isStaging to agent