added instance_table checking and additional debug for counters value