change function name & add qmp interface