WIP, reactor not working (segfault?)