fixing vm stack stuff