hack it out over lunch. Totally untested.