fixed rpc bug and enhanced nao behavior example