added nick retrieval function