add optimal workitem parameters and profiling. temporary save