how do I force a call to a function during load