a new easy way to register endpoints