extend sample code: manyclients