changed api from strings to URIs and URLs