make max jobs in queue feature work nicer