api debug statements