check for __main__ before invoking default action