setup HTTP handlers