todo
how to handle profiler rate?