rolling my own key-value server