added flags for profiling