store a static reference to the Main class