MDL-39422 course: converted closures to fix eAccelerator issues