moved parameters reading to mkparams.lua