numerous fixes for IE6