at least it compiles

TODO empty the blocked queue, figure out when to terminate everybody.