better turn detection for firefox/chrome connection.