read inputs from command-line