added version and cpuprofile flags