to use fox in main.m