register static handler before router so that static stuff is handled ok