added VM stack helpers