fixed url endpoint problem