cleanup of apis