set the right mask for the client msg!