ie7ify this via a very ugly hack to deal with race conditions