added __main__ footer