implemented auto queue creation