add auto follow to group subscribe, and rearrange code
add flag link functions