append update_endpoints(), and fixes crud of endpoints

Signed-off-by: Kouhei Maeda <mkouhei@palmtb.net>