fix file extension in temp file
multiline input working