setting up the library interface for the vm.