adding some debug code to executeFn