update to load endpoints automatically