turn command into command list