made scripts run with grid