better modularizing stuff.  generate list of endpoints.