implement friend-addition functionality and some dirty redirection hacks