make init_community() a classmethod