fixed some endpoint errors in adtype