write tests & flesh out, like, everything

server got no love :(