main in script