can we have errors too ? better be safe here and register an onerror handler too