__main__ stuff