ws_name is not not recordered into text file