rebuilt distribution, api test script