added back functions from the original meanstorisk tool, now considered as option2