#5 it now actualy runs witout crashing, did some refactoring while I ponderd about compile static