cleaned up initialization for IE