fixes for ie8 compatibility