write to file
add group from txt