TODO: will change to BufferedReader so as to readLine easily