improved server-side friends connection