extract params outside module