changes for new interface structure in engine + type assertion commented