added routine to compute endpoint
added endpoint file