update to support safari

update to support safari