adapt to changes in megalut code
(#22)