ir lib-working on sending and receiving