numerous fixes for ie