var type checking bug
fixed ipc call bug