read from the terminal