update runShell API. become flat.