fixed crisis where classes in __main__ aren't imported correctly