some more little fixes. sources compilable but simulation not yet runnable.