add basic readline support