resize
a lot of fixes all over the place