the c++ stuff might work now
nice, this kinda works.
a bit simpler