make resizing work again
remove some dead code