three cheers for cobbling together a solution with janky code