add readline controls