better bug fix for detecting need to initialize