added some friendship APIs