save to file and new method of line blocking