refactoring - introduction of MetaLog (first step)