added new readline-capable version