wine api - phase 1