added list.txt functionality