ipc-related refactoring