used the __main__ do properly execute as script