added console, and bugfix for error log