debug-mode

add debug mode to upsight api