added group creation, refactored post related stuff