remove manual listing of defined functions in favor of traversing the local variables with debug.getlocal