defering after declaring WaitGroup
add cpuprofile option