improve some browser support