print errors to stderr to allow for sanitised stdout