functions for the community feature added with a lot of bugs remaining