add sending of lines
add receiving of lines
add app keys