ipc: first working rewrite.