Manager script ANCOR API integration: phase 1.5 (and some minor bug fixes)