make local function arguments work