fix lua binding to use peer ids instead of address
add error checking for peers on send packet