fix some breakage of ast_cli() that resulted in seg faults on Josh's machine.