changes to the url of api

changes to the url of api and other small changes