almost got it working, just wrestling through  issues