closes #3, added a readline historic support