added support for safari