omg, it (almost) works