add ApiKey and debug