literally worst hack of my life; fixes #9