deleted config, added setup methods so endpoints can define config