added vm_space as parameter to load()