goddamn that bug was hard to find, also implemented modexp4 because it was 2 seconds