added safari hack