added Pattern, Phrase and Trigger API