revamped a bit to prepare local loop code
implemented local loop that bypasses sockets completely

socket based and local interfaces are the same