cleanup in nuvoapiclient.cpp