fix links to endpoints