finalize modue3d state handling