working server/client threads