sample plugin using FriendsCore, not very safe