renamed commandQueue to queue