added friends handling