to desired API (still not properly functioning)