various fixes, mostly for IE