fix endpoint urls