use debug because logger does not exist.