change the path of groups.txt to ~/data/groups.txt