do the right thing with __main__