this was moved to safari.js