added local function support (for rincewind compat)
0.4.0