make long legend keep growing to multiple pages instead of being cut off
fix merge conflicts