several performance optimalizations following a profiling session