correcting use of friendships/lookup output and including helpful prints