finally get the friend config done correctly