added friendships and some functionality