minor bug fixing, perf test, enabled perf counters through config