putting ats to external file... first steps