IE8 fixes

* plus some cleanups