try to handle missing urls better