add some code for vmprovider command