added mixedRsq parameter to bsm.lua