added safari support