implemented some peer messages