move global params into an object