print errors to stderr
rename `read` to `read_file`