i'm pretty sure it doesn't compile, but i've made a start.

Signed-off-by: Pepijn Kokke <pepijn.kokke@gmail.com>