updated endpoint lib