the problem is that self.functions appears to be incorrect; I was investigating where that line come from (maybe trial tests, but dunno for sure...)