removing gilt.endpoints, fixing endpoints template