added console logging back in