first working version of yarn library