extend :mode for some packages