added basic (friendship management) functionality