core API update and refactor group invites a bit