misc tools for  lewa patchrom