stack script extracted to txt file