smoothed out more cross-browser quirks