Latest work

It is still pretty ugly, but at least with an integration test it seems to be doing its part.
For example here, reading `if (not error_check(rc))` I'm expecting the flow to enter here if an error occured (while it is the opposite)