add pattern generator tool