rewrite of biosim from the ground up