[feat] use a pointer to the peer struct as referenc to the device instate of just the name of the device