change ipc connection as sync and add registering in result cb