use read instead of inquirer