launch optimal # of instances to handle queue if not empty instead of 1 as constant