make agent cmd use correct _id