add performance counter
make libco optional