added nick recognition code