add readline for cli