refactoring community actions