added command queue and explore