better foxx support with global context