Lesson of the day: do not fuckery with prototypes. properly fixes #301