fake local scoping for functions