handle <cr>