converted to jline 2.x