allows command-line __main__ call.