updated AMI - avoid launching when queue is empty, fix poller IndexError