added a browser check