add readline at frontend