WTF is this.
I'll explain this when I'm sober .. or revert it
work in progress
I must have been drunk.