sets main entry script