implements (lame) main processing file