fix for --endpoint-type not being actually used