catch hup signal
write pid file
refactor lenz, use consistent hash for selecting backend