fails gracefully for Safari