retreive and push to txt file