endpoint setup