added console dependency instead of reading off of the console object