p2ptrade: made agent self-sufficient