added format to encode real PIDs got from previous rpc call