add better sample server, a few frontend tweaks