improved cross browser support