reduce extra api operation
rename main-private.py to main.py
add missing variable
add performance counter