moved community stuff into main script