added scan
added counters