got it working, sort of