working server (but, uh, it isnt too clever)