keep track of peer connections, reuse efficiently

key-value store not working properly now