fixes issue with functions that aren't defined prior to _init