added logging to stderr