function pointer sandbox stuff