ticket-submitting script