optimize imports and optimize profiling