add support for classic analytics
add support for debug option