change insert_into_file to append_to_file for poligloto