update to community detection scripts