patternsend: use external trigger and bug fixes