added tailq initial code