added console debug