performence increased dramatically; error initially in options(mc.cores) = 2 being global.