send state to another pid