wip for coffee-beans/scarf-api#7