register endpoint