abstract sdk values to vars instead of vals