add pattern module import

web is used without importing