added basic support for ie