redirected error messages to stderr, added use of Console