more fixes for legacy browsers