removed repurposing singleton in mainOnLoad