write errors to stderr
removed redundant list