endpoint moved to constants