debugging automatic api