new measurement setup, segfault but getting closer