handle mutliple clients properly