fix some bugs, declare interface for groupManager, remove some shit