notes on how I finally got it working