fixed deprecation warning with urls, see #301, #305, #310