- big simulation bugfix, added simulation unit test (more to come)