add support for insert to vm