cleanup of backend graph