made it so setmode executes before syncjags