nio engine code refinement