add pattern module and fix lipidmaprest