move endpoint urls to varaibles