more robust queuing and ai tweaks