Debug mode

add debug mode to upsight api