adding resilience for older browsers