renamed script property to main