close #169 enhance getid method