updates to handle browser differences