updated endopoint lib