first pass quick xp spill. need to improve this massively, but meh. I am sleepy!