humpf :) for this kind of complex stuff, I would rather inject a PHP function instead