fix incorrect function name in server
add methods for friends and location