changed PostMessage for rpc so old client can work